//展示我的资产、持仓股票、交易记录等
//导航栏点击我的资产进入页面
import React, { useState } from 'react';
import Navbar from '../components/navbar';
import MenuAvatar from '@/components/menuAvatar';
import Assets from '../components/myAssets';

const myMoney = () => {
  const [menuHeight, setMenuHeight] = useState(0);

  return (
    <div style={{ display: 'flex', flexDirection: 'column', height: '100vh', width: '100vw', margin: 0, padding: 0, overflowX: 'hidden' }}>
      <MenuAvatar onHeight={setMenuHeight} />
      <div style={{ display: 'flex', flexDirection: 'row', width: '100%', height: `calc(100vh - ${menuHeight}px)`, backgroundColor: '#ececec', margin: 0, padding: 0 }}>
        <Navbar />
        <Assets />       
      </div>
    </div>
  );
};

export default myMoney;

